<?php
$username = $_POST['username'];
$email = $_POST['email'];
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$pass = $_POST['pwd'];

safe_query("INSERT INTO ".PREFIX."user (username, password, money) VALUES ('".$username."', '".$pass."', 0)");

$is_ajax = $_REQUEST['is_ajax'];
if(isset($is_ajax) && $is_ajax)
{
echo "success";
}
else
{
redirect('index.php','',0);
}


?>